package projectmanagement.models;

import java.util.*;

/* TODO: write JavaDoc */

/**
 * User Class
 *
 * @author Sergey Parakhin (sergey.parahin@gmail.com)
 *
 */
public class User {
    private final int id;
    private String name;
    private int age;
    private String position;
    private String technologies;

    public User(int id, String name, int age, String position, String technologies) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.position = position;
        this.technologies = technologies;
    }

    public int getId() {
        return id;
    }

    @Override
    public String toString() {
        StringBuilder details = new StringBuilder();
        details.append("User #id     :  ").append(id).append("\n")
                .append("Name         :  ").append(name).append("\n")
                .append("Age          :  ").append(age).append("\n")
                .append("Position     :  ").append(position).append("\n")
                .append("Technologies :  ").append(technologies).append("\n");
        return details.toString();
    }
    
    public String getName(){
        return name;
    }
}